package com.itboye.mybatis.model;

import com.itboye.mybatis.enumtype.DataStatus;
import com.itboye.mybatis.enumtype.UserRoles;

/**
 * MemberGroup.java
 * Created on  2016/7/22 15:20
 * 版本       修改时间          作者      修改内容
 * V1.0.1    2016/7/22      hebidu    初始版本
 * <p>
 * Copyright (c) 2013 杭州博也网络科技有限公司 版权所有
 * HANGZHOU BOYE TECHNOLOGY CO.,LTD. All Rights Reserved.
 */
public class AuthGroupModel {

    @Override
    public String toString() {
        return "AuthGroup{" +
                "id=" + id +
                ", title='" + title + '\'' +
                ", status=" + status +
                ", rules='" + rules + '\'' +
                ", menulist='" + menulist + '\'' +
                ", notes='" + notes + '\'' +
                '}';
    }

    private int id;
    private String title;
    private DataStatus status;
    private String rules;
    private String menulist;
    private String notes;

    /**
     * 获取用户角色枚举
     * @return
     */
    public UserRoles getUserRoles(){
        return UserRoles.getUserRoles(id);
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public DataStatus getStatus() {
        return status;
    }

    public void setStatus(DataStatus status) {
        this.status = status;
    }

    public String getRules() {
        return rules;
    }

    public void setRules(String rules) {
        this.rules = rules;
    }

    public String getMenulist() {
        return menulist;
    }

    public void setMenulist(String menulist) {
        this.menulist = menulist;
    }

    public String getNotes() {
        return notes;
    }

    public void setNotes(String notes) {
        this.notes = notes;
    }
}
